package com.example.test.mapper;

import com.example.test.Bean.UserBean;
import com.example.test.Bean.UserImgBean;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UserMapper {
   UserBean gitInfo(String name, String password);
   List<UserBean> getAllUser();
   int insertUser(UserBean userBean);

    int deleteUser(String id);

    UserBean getUserById(String id);

    int updateUser(UserBean userBean);

    List<UserBean> selectUser4Page();

    int insertUserImg(UserImgBean userImgBean);

     int getId(UserBean userBean);

     List<UserImgBean>getUserImgsById(String user_id);
}
